//
//  AddDoITViewController.m
//  DoIT
//
//  Created by gex on 14/11/10.
//  Copyright (c) 2014年 gex. All rights reserved.
//

#import "AddDoITViewController.h"
#import "Todo.h"

@interface AddDoITViewController ()

@end

@implementation AddDoITViewController

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    if (sender!=_doneBtn) return;
    if (_todoTextLabel.text.length>0) {
        _todo = [[Todo alloc]initWithContent:_todoTextLabel.text];
    }
}
@end
